package com.liuyanzhao.ssm.blog.service.impl;

import com.liuyanzhao.ssm.blog.entity.Parameter;
import com.liuyanzhao.ssm.blog.mapper.ParameterMapper;
import com.liuyanzhao.ssm.blog.service.ParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lixiang
 */
@Service
public class ParameterServiceImpl implements ParameterService {

    @Autowired
    ParameterMapper parameterMapper;


    @Override
    public Boolean addParameter(Parameter parameter) {

        parameterMapper.addParameter(parameter);
        return true;
    }

    @Override
    public List<Parameter> getParameter() {
        return parameterMapper.getParameter();
    }
}
